package com.jc.subject.domin.handler.subject;

import com.jc.subject.common.enums.SubjectInfoTypeEnum;
import com.jc.subject.domin.entity.SubjectInfoBO;
import com.jc.subject.domin.entity.SubjectOptionBO;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Author: ASL_ly
 * @Package: com.jc.subject.domin.handler.subject
 * @Project: jc-club
 * @Date: 2024/10/23  20:29
 */

public interface SubjectTypeHandler {

    /**
     * 枚举身份识别
     * @return
     */
    SubjectInfoTypeEnum getHandlerType();

    /**
     * 实际的题目插入
     * @param subjectInfoBO
     */
    void add(SubjectInfoBO subjectInfoBO);

    /**
     * 实际题目查询
     * @param subjectId
     * @return
     */
    SubjectOptionBO query(Long subjectId);
}
